#!/usr/bin/env python3
# -*- coding: utf-8 -*
# Time :2024-06-18 10:10
# @Author: baiping
import yaml


class ReadYaml:
    def __init__(self):
        with open('../until/page_locator.yaml') as f:
            self.data = yaml.load(f,Loader=yaml.FullLoader)

    def read_path(self,page,locator_name):
        return self.data[page][locator_name]
